package de.puc.defencetower;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import de.puc.defencetower.controller.iGameController;
import de.puc.defencetower.controller.impl.GameController;
import de.puc.defencetower.model.Map;
import de.puc.defencetower.view.tui.TUIWindow;
import de.puc.defencetower.view.tui.panel.PanelWindow;

public class MainTUI {

	private static Logger logger = Logger.getLogger("de.puc.defencetower.MainTUI");
	
	private MainTUI(){
		
	}
	
	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) {
		PropertyConfigurator.configure("log4j.properties");
		
		logger.info("Welcome to PuC DefenceTower!!!");
		
		// Map erzeugen
		Map map = MapFactory.createSmallMap();

		// GameControler starten
		iGameController gameControlerInterface = new GameController(map);
		gameControlerInterface.start();
		
		// Anzeige refresh
		new TUIWindow(gameControlerInterface, map);
		new PanelWindow(gameControlerInterface,map);
	}

}